import axios from 'axios'
let list =(params)=>axios.get('/menu/sub',{params});
let add = (data) => axios.post('/menu', data);
let update = (id, data) => axios.put(`/menu/${id}`, data);
let remove = (id) => axios.delete(`/menu/${id}`);
export default {
    list, add, update, remove
}